package com.hoperun.checkcloth.util

import android.content.Context
import android.view.View
import android.view.inputmethod.InputMethodManager

fun hideSoftInput(v: View) {
    (v.context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager).apply {
        hideSoftInputFromWindow(v.windowToken, 0)
    }
}